package com.cz.nongyetongv5.bean;

import java.io.Serializable;

/**
 * 数据库访问的工具类,从系统继承过来
 */
public class DuChaXunCha implements Serializable {

	private String title;
	private String region_code = null;
	private String trade = null;
	private String key = null;
	private String addTime = null;
	private String kind = null;
	private String modifyTime = null;

	private String deleteTime = null;

	private String problem = null;

	/**
	 * 检测是否允许删除
	 */
	private boolean isAllowRemove = true;

	public String getTrade() {
		return trade;
	}

	public void setTrade(String text) {
		this.trade = text;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String text) {
		this.title = text;
	}

	public String getProblem() {
		return problem;
	}

	public void setProblem(String text) {
		this.problem = text;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String text) {
		this.key = text;
	}

	public String getKind() {
		return kind;
	}

	public void setKind(String text) {
		this.kind = text;
	}

	public DuChaXunCha(String title, String region_code) {
		this.title = title;
		this.region_code = region_code;
	}

	public DuChaXunCha(String region_code, String trade, String key,
					   String title, String problem, String addTime, String modifyTime,
					   String deleteTime) {
		this.region_code = region_code;
		this.trade = trade;
		this.key = key;
		this.title = title;
		this.problem = problem;
		this.addTime = addTime;
		this.modifyTime = modifyTime;
		this.deleteTime = deleteTime;
	}

	public String getRegion_code() {
		return region_code;
	}

	public void setRegion_code(String text) {
		this.region_code = text;
	}

	public DuChaXunCha() {
	}

	@Override
	public boolean equals(Object o) {

		boolean result = false;

		if (o != null) {

			if (o instanceof DuChaXunCha) {

				DuChaXunCha other = (DuChaXunCha) o;

				if (!result) {
					if (other.getTitle() != null && this.getTitle() != null) {

						if (other.getTitle().equals(this.getTitle())) {

							result = true;
						}

					}
				}

			}

		}

		return result;

	}

	public boolean isAllowRemove() {
		return isAllowRemove;
	}

	public DuChaXunCha setAllowRemove(boolean isAllowRemove) {
		this.isAllowRemove = isAllowRemove;

		return this;
	}

	public String getAddTime() {
		return addTime;
	}

	public void setAddTime(String addTime) {
		this.addTime = addTime;
	}

	public String getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(String modifyTime) {
		this.modifyTime = modifyTime;
	}

	public String getDeleteTime() {
		return deleteTime;
	}

	public void setDeleteTime(String deleteTime) {
		this.deleteTime = deleteTime;
	}

}